RESTful Engine Error Handling
The RESTful API includes a facility for collecting and displaying warnings and errors that occur while it is generating output. This article describes what the verify and error handling features do, with some examples of the warnings and errors they capture.
This article also describes the TrackErrors node used in the Engine POST request to enable error handling, and provides an example XML POST request.
#
FunctionalityThe verify feature provides you with actionable information on non-fatal errors, warnings, and other issues contained within a Report Template that occur when generating output with Report Engine for RESTful.
Error handling is a Tag property that can be set to catch errors and exceptions that occur in a Tag's query. Depending on the error-handling Tag property setting, otherwise fatal errors can be captured and ignored so output can be completed despite the error.
#
Example Warnings and ErrorsHere are some examples of the warnings and errors captured when the verify and error handling features are used:
#
Data Type Issues#
Formatting Issues#
Bad Select Statement#
Node Does Not Exist#
Node Is Null#
Verification Issues#
TrackErrors POST Request NodeYou enable error handling by adding the TrackErrors node to your POST request body. The node must be added within the âTemplateâ node. Here are the valid TrackErrors values:
#
Error Handling ResultsError handling and verify results are returned within the <Errors>
node at the end of the template's base64 output, with individual issues listed within individual <Issue>
nodes, e.g.:
#
Example XML POST Request with Error HandlingHere is an example XML POST request, with the <TrackErrors/>
added: